/**
 * Copyright (c) 1987-2010 Fujian Fujitsu Communication Software Co.,
 * Ltd. All Rights Reserved.
 * This software is the confidential and proprietary information of
 * Fujian Fujitsu Communication Software Co., Ltd.
 * ("Confidential Information"). You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with FFCS.
 * FFCS MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
 * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. FFCS SHALL NOT BE LIABLE FOR
 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */
package aip.ui.dictionary.web.spring;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.collections.FactoryUtils;
import org.apache.commons.collections.ListUtils;

import aip.core.model.dictionary.Dictionary;

/**
 * Dictionary edit form.
 *
 * @author
 * @version Revision 1.0.0
 */
public class DictionaryEditForm extends Dictionary {

    private static final long serialVersionUID = -5241136982825706935L;
    private List<Dictionary>  dictionaries;
    private String            type;

    @SuppressWarnings("unchecked")
    public DictionaryEditForm() {
        super();
        this.dictionaries = ListUtils.lazyList(new ArrayList<Dictionary>(),
            FactoryUtils.instantiateFactory(Dictionary.class));
    }

    /**
     * @return the dictionaries
     */
    public List<Dictionary> getDictionaries() {
        return dictionaries;
    }

    /**
     * @param dictionaries
     *            the dictionaries to set
     */
    public void setDictionaries(List<Dictionary> dictionaries) {
        this.dictionaries = dictionaries;
    }

    /**
     * @return type属性
     */
    public String getType() {
        return type;
    }

    /**
     * @param type
     *            设置type属性
     */
    public void setType(String type) {
        this.type = type;
    }
}
